// // const commondUtil = require ("./utils.js");
// // const StorageUtilss = require ("./storageUtils.js");
// // const clockInHandles = require('./clockInHandle.js');
const wsTools = require('./websocketSingleClient.js');
// // 192.168.137.1    127.0.0.1
const url = "ws://192.168.137.1:6888/ws/sign?clientName=testClient&token=eyJhbGciOiJIUzUxMiJ9.eyJqdGkiOiIxZWNkYTgxMmZmMTA0YjgxYjM4ZDNkYWNmODhjMjEzNCIsInN1YiI6ImFkbWluIiwiaXNzIjoiYWRtaW4iLCJpYXQiOjE3Mzk3NjI0NTZ9.2tFl40FuizhG76VAze8SnlzGMe58E9WZzcEGVJRHwevGZm5pSMSvHjvxNoTNeXJ4WfZODzUIYsrjiR2FiH6HsA";

let wsClient;
let t = threads.start(function() {
    wsClient = new wsTools.WebsocketClient(url, {
        onClosed: (code, reason) => {
            log("连接关闭，退出脚本");
            t.interrupt();
            exit();
        },
    });
    wsClient.connect();
});

setInterval(() => {
    
}, 60000);
